package com.daz.manager.loginHis.server.impl;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.daz.manager.loginHis.dao.LoginHisMapper;
import com.daz.manager.loginHis.pojo.LoginHis;
import com.daz.manager.loginHis.server.ILoginHisSV;
import com.daz.manager.managerInfo.pojo.ManagerPojo;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;

@Service
public class LoginHisSV implements ILoginHisSV{
	@Autowired
	private LoginHisMapper dao;

	@Override
	public int deleteByPrimaryKey(String id) throws Exception {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insert(LoginHis record) throws Exception {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insertSelective(LoginHis record) throws Exception {
		// TODO Auto-generated method stub
		dao.insertSelective(record);
		return 0;
	}

	@Override
	public LoginHis selectByPrimaryKey(String id) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int updateByPrimaryKeySelective(LoginHis record) throws Exception {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public PageInfo<LoginHis> qryByPrimaryKey(HashMap<String, Object> map, int pageNum,
			int pageSize) throws Exception{
		// TODO Auto-generated method stub
		PageHelper.startPage(pageNum, pageSize) ;
		List<LoginHis> list = dao.qryByPrimaryKey(map);
		return new PageInfo<>(list);
	}

	
	

	
}
